<!doctype html>
<html>
<head>
<title>上传题库</title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
	$(document).ready(function(){
		$('input[type=text]:not(:disabled)').each(function(){  
        $(this).val($.trim($(this).val()));  
		});  
		
	});
	
</script>
<style>
.divclass{
	margin:0 auto; 
	text-align: center;
	width:960px;
	border:1px solid gray;
	margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="divclass">
<h2>上传题库</h2>
<form action="/uploadexam" method="post">

<p>
<#if err??>
	<span style="color:red">${err}</span>
</#if>
</p>
<p style="color:red">题目编号<input type="text" name="exnum" id="exnum" value="${maxexampaperIDAdd1!}" />*如非必要请勿修改此参数!</p>
<p>问题<input type="text" name="exquestion" id="exquestion" value="" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')" /></p>
<p>选项A<input type="text" name="exopta" id="exopta" value="正确" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"/></p>
<p>选项B<input type="text" name="exoptb" id="exoptb" value="错误" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"/></p>
<p>选项C<input type="text" name="exoptc" id="exoptc" value="" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')" disabled="disabled"/></p>
<p>选项D<input type="text" name="exoptd" id="exoptd" value="" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')" disabled="disabled"/></p>
<p>答案<input type="text" name="exkey" id="exkey" value="" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"/></p>
<p><input type="submit" name="btnUpload" id="btnUpload" value="上传" /></p>
<p><input type="reset" name="btnReset" id="btnReset" value="重置" /></p>

</form>

<a href="/logout" style="font-weight: bold;">安全退出</a></br>*1.为了安全请结束上传的时候安全退出</br>2.选项必须和答案严格匹配</p>
</div>

</body>
</html>